package lhy.autoparts.pojo;


import lhy.frontend.annotation.EntityComment;
import lhy.orm.Serializer;
import lhy.orm.annotation.BasicBean;
import lhy.orm.annotation.Column;
import lhy.lhyorm.field.DatabaseField;
import lhy.lhyorm.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "Customer")
@EntityComment("客户")
@BasicBean
public class Customer implements Serializable {
    @Column("客户编号")
    @DatabaseField(generatedId =true)
    public int id;
    @Column("客户姓名")
    @DatabaseField public String  name;
    @Column("联系人姓名")
    @DatabaseField public String  contact;
    @Column("联系人电话")
    @DatabaseField public String  phone;
    @Column("地址")
    @DatabaseField public String  address;

    @Column("备注")
    @DatabaseField(canBeNull=true) public String  comment;

    @Override
    public String toString() {
        return Serializer.doSerialize(this);
    }
}
